package org.dromara.manu.domain.bo;

import org.dromara.manu.domain.ManuMaterialCategory;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 物料类别业务对象 manu_material_category
 *
 * @author Bin Liu
 * @date 2024-11-21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ManuMaterialCategory.class, reverseConvertGenerate = false)
public class ManuMaterialCategoryBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 父类别id
     */
    private Long parentId;

    /**
     * 简述
     */
    @NotBlank(message = "简述不能为空", groups = { AddGroup.class, EditGroup.class })
    private String description;


}
